package com.example.camunda.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * 流程部署创建DTO
 *
 * @author heshao
 * @date 2021/11/9 16:59
 **/
@Data
@ApiModel
public class DeploymentCreateFormData {

    @ApiModelProperty(value = "The name for the deployment to be created.")
    private String deploymentName;

    @ApiModelProperty(value = "The source for the deployment to be created.")
    private String deploymentSource;

    @ApiModelProperty(value = "The binary data to create the deployment resource.", required = true)
    @NotNull
    private MultipartFile data;
}
